
































  
  


  

  
  	
  

  

	
	

	
	
	
	
	




  
















	
	
	
	
	
	
	
	
	
	
  
  


	


	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	




    
  






  
    
  




	
	
	
	
	



<!--NewPage-->
<HTML>

<!-- Mirrored from delerium:8503/cfcdoc/content.cfm?file=C%3A%5CInetpub%5Cwwwroot%5Ctransfer%2Droot%5Ctransfer%5Ccom%5Csql%5CIDGenerator%2Ecfc by HTTrack Website Copier/3.x [XR&CO'2006], Sat, 07 Apr 2007 03:17:33 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8"><!-- /Added by HTTrack -->
<HEAD>

<!-- Generated by CFDoc on 07-Apr-2007 01:17 PM -->

<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
</HEAD>
<BODY>


	



<HR>
<!-- ======== START OF CLASS DATA ======== -->

<div style="float:left;">

<a href="default.html" style="float: right;">Documentation home page</a>
</div>
<H2>
<span style="font-size: smaller">
<a href="components3650.html" target="components">transfer.com.sql</a>
</span>
<BR>
Component IDGenerator</H2>


<PRE>
<B>transfer.com.sql.IDGenerator</B>
</PRE>


<HR>
Generates IDs for a sequence


<HR>

<P>


<!-- ========== PROPERTY SUMMARY =========== -->

<A NAME="property_summary"><!-- --></A>






<!-- ========== METHOD SUMMARY =========== -->




<A NAME="method_summary"><!-- --></A>

<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">

<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>











	





	





	





	





	





	





	





	





	





	





	





	





	





	





	





	





	





	





	





	





	





	





	





	





	





	



	<TR BGCOLOR="eeeeff" CLASS="TableRowColorConstructor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>public <a href="contentb162.html" target="_self">IDGenerator</a></CODE></TD>
	<TD><CODE><B><A HREF="#init()">init</A></B>(<a href="nativetypes.html#detail_numeric">numeric</a> changeFactor,&nbsp;<a href="content2efb.html">Datasource</a> datasource,&nbsp;<a href="content13c8.html">Utility</a> utility)</CODE>
	
		<BR>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor
	</TD>
	</TR>
	

	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="nativetypes.html#detail_boolean" target="_self">boolean</a></CODE></TD>
	<TD><CODE><B><A HREF="#checkHaveSequence()">checkHaveSequence</A></B>(<a href="nativetypes.html#detail_string">string</a> name)</CODE>
	
		<BR>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks to see if the sequence is in the collection
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="nativetypes.html#detail_void" target="_self">void</a></CODE></TD>
	<TD><CODE><B><A HREF="#createNewSequence()">createNewSequence</A></B>(<a href="content7052.html">Object</a> object)</CODE>
	
		<BR>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new sequence in the database if it doesn't exist
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="nativetypes.html#detail_void" target="_self">void</a></CODE></TD>
	<TD><CODE><B><A HREF="#createSequenceTable()">createSequenceTable</A></B>()</CODE>
	
		<BR>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates the database table for you
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="nativetypes.html#detail_numeric" target="_self">numeric</a></CODE></TD>
	<TD><CODE><B><A HREF="#getChangeFactor()">getChangeFactor</A></B>()</CODE>
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="nativetypes.html#detail_numeric" target="_self">numeric</a></CODE></TD>
	<TD><CODE><B><A HREF="#getCurrentIDFromSequence()">getCurrentIDFromSequence</A></B>(<a href="nativetypes.html#detail_string">string</a> name)</CODE>
	
		<BR>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gets the Current ID from the sequence
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="content2efb.html" target="_self">Datasource</a></CODE></TD>
	<TD><CODE><B><A HREF="#getDatasource()">getDatasource</A></B>()</CODE>
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>public <a href="nativetypes.html#detail_string" target="_self">string</a></CODE></TD>
	<TD><CODE><B><A HREF="#getGUID()">getGUID</A></B>()</CODE>
	
		<BR>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5862
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="nativetypes.html#detail_numeric" target="_self">numeric</a></CODE></TD>
	<TD><CODE><B><A HREF="#getIDFromSequence()">getIDFromSequence</A></B>(<a href="content7052.html">Object</a> object)</CODE>
	
		<BR>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets an ID from a given sequence
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="nativetypes.html#detail_numeric" target="_self">numeric</a></CODE></TD>
	<TD><CODE><B><A HREF="#getMaxIDFromSequence()">getMaxIDFromSequence</A></B>(<a href="nativetypes.html#detail_string">string</a> name)</CODE>
	
		<BR>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gets the max ID from the sequence
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>public <a href="nativetypes.html#detail_numeric" target="_self">numeric</a></CODE></TD>
	<TD><CODE><B><A HREF="#getNumericID()">getNumericID</A></B>(<a href="content7052.html">Object</a> object)</CODE>
	
		<BR>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets an numeric ID for a given object (synchronized)
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="nativetypes.html#detail_struct" target="_self">struct</a></CODE></TD>
	<TD><CODE><B><A HREF="#getSequenceCollection()">getSequenceCollection</A></B>()</CODE>
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="content13c8.html" target="_self">Utility</a></CODE></TD>
	<TD><CODE><B><A HREF="#getUtility()">getUtility</A></B>()</CODE>
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>public <a href="nativetypes.html#detail_uuid" target="_self">uuid</a></CODE></TD>
	<TD><CODE><B><A HREF="#getUUID()">getUUID</A></B>()</CODE>
	
		<BR>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a UUID as an ID
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="nativetypes.html#detail_void" target="_self">void</a></CODE></TD>
	<TD><CODE><B><A HREF="#increaseMaxIDForSequence()">increaseMaxIDForSequence</A></B>(<a href="nativetypes.html#detail_string">string</a> name)</CODE>
	
		<BR>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Increases the MaxID for a sequence
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="nativetypes.html#detail_numeric" target="_self">numeric</a></CODE></TD>
	<TD><CODE><B><A HREF="#incrementCurrentID()">incrementCurrentID</A></B>(<a href="nativetypes.html#detail_string">string</a> name)</CODE>
	
		<BR>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;retruns the currentID + 1 and increments it
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="nativetypes.html#detail_void" target="_self">void</a></CODE></TD>
	<TD><CODE><B><A HREF="#restoreSequence()">restoreSequence</A></B>(<a href="content7052.html">Object</a> object)</CODE>
	
		<BR>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;restores a sequence from the DB
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="nativetypes.html#detail_numeric" target="_self">numeric</a></CODE></TD>
	<TD><CODE><B><A HREF="#retrieveSequence()">retrieveSequence</A></B>(<a href="content7052.html">Object</a> object,&nbsp;[<a href="nativetypes.html#detail_boolean">boolean</a> runOnce="false"],&nbsp;[<a href="nativetypes.html#detail_boolean">boolean</a> useBinding="true"])</CODE>
	
		<BR>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrives the current ID for the sequence
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="nativetypes.html#detail_void" target="_self">void</a></CODE></TD>
	<TD><CODE><B><A HREF="#setChangeFactor()">setChangeFactor</A></B>(<a href="nativetypes.html#detail_numeric">numeric</a> ChangeFactor)</CODE>
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="nativetypes.html#detail_void" target="_self">void</a></CODE></TD>
	<TD><CODE><B><A HREF="#setCurrentIDFromSequence()">setCurrentIDFromSequence</A></B>(<a href="nativetypes.html#detail_string">string</a> name,&nbsp;<a href="nativetypes.html#detail_numeric">numeric</a> currentID)</CODE>
	
		<BR>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Max ID for a sequence
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="nativetypes.html#detail_void" target="_self">void</a></CODE></TD>
	<TD><CODE><B><A HREF="#setDatasource()">setDatasource</A></B>(<a href="content2efb.html">Datasource</a> Datasource)</CODE>
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="nativetypes.html#detail_void" target="_self">void</a></CODE></TD>
	<TD><CODE><B><A HREF="#setMaxIDFromSequence()">setMaxIDFromSequence</A></B>(<a href="nativetypes.html#detail_string">string</a> name,&nbsp;<a href="nativetypes.html#detail_numeric">numeric</a> maxID)</CODE>
	
		<BR>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Max ID for a sequence
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="nativetypes.html#detail_void" target="_self">void</a></CODE></TD>
	<TD><CODE><B><A HREF="#setSequenceCollection()">setSequenceCollection</A></B>(<a href="nativetypes.html#detail_struct">struct</a> SequenceCollection)</CODE>
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="nativetypes.html#detail_void" target="_self">void</a></CODE></TD>
	<TD><CODE><B><A HREF="#setUtility()">setUtility</A></B>(<a href="content13c8.html">Utility</a> Utility)</CODE>
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="nativetypes.html#detail_any" target="_self">any</a></CODE></TD>
	<TD><CODE><B><A HREF="#throw()">throw</A></B>(<a href="nativetypes.html#detail_string">string</a> type,&nbsp;<a href="nativetypes.html#detail_string">string</a> message,&nbsp;[<a href="nativetypes.html#detail_string">string</a> detail=""])</CODE>
	
		<BR>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Throws an Exception
	
	
	</TD>
	</TR>
	
	<TR BGCOLOR="white" CLASS="TableRowColor">
	<TD ALIGN="right" VALIGN="top" WIDTH="1%">
	<CODE>private <a href="nativetypes.html#detail_void" target="_self">void</a></CODE></TD>
	<TD><CODE><B><A HREF="#updateSequence()">updateSequence</A></B>(<a href="nativetypes.html#detail_string">string</a> name,&nbsp;<a href="nativetypes.html#detail_numeric">numeric</a> maxID)</CODE>
	
		<BR>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Updates the sequence in the db
	
	
	</TD>
	</TR>
	
</TABLE>



&nbsp;
<P>



<!-- ============ METHOD DETAIL ========== -->


<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>












<A NAME="checkHaveSequence()"><!-- --></A><H3>
checkHaveSequence</H3>

<PRE>
private <A HREF="nativetypes.html#detail_boolean" title="">boolean</A> <B>checkHaveSequence</B>(<a href="nativetypes.html#detail_string">string</a> name)</PRE>
<DL>
  <DD>
  	
  	
		Checks to see if the sequence is in the collection
	    <P>
	
	
		<DL>
		  <DT><B>Parameters:</B></DT>
			
			  <DD><code><a href="nativetypes.html#detail_string">string</a> name</code> - The name of the table</DD>
			
		</DL>
	
	
    
  </DD>
</DL>
<HR>




<A NAME="createNewSequence()"><!-- --></A><H3>
createNewSequence</H3>

<PRE>
private <A HREF="nativetypes.html#detail_void" title="">void</A> <B>createNewSequence</B>(<a href="content7052.html">Object</a> object)</PRE>
<DL>
  <DD>
  	
  	
		Creates a new sequence in the database if it doesn't exist
	    <P>
	
	
		<DL>
		  <DT><B>Parameters:</B></DT>
			
			  <DD><code><a href="content7052.html">Object</a> object</code> - The type of object to get the ID for</DD>
			
		</DL>
	
	
    
  </DD>
</DL>
<HR>




<A NAME="createSequenceTable()"><!-- --></A><H3>
createSequenceTable</H3>

<PRE>
private <A HREF="nativetypes.html#detail_void" title="">void</A> <B>createSequenceTable</B>()</PRE>
<DL>
  <DD>
  	
  	
		Creates the database table for you
	    <P>
	
	
	
    
  </DD>
</DL>
<HR>




<A NAME="getChangeFactor()"><!-- --></A><H3>
getChangeFactor</H3>

<PRE>
private <A HREF="nativetypes.html#detail_numeric" title="">numeric</A> <B>getChangeFactor</B>()</PRE>
<DL>
  <DD>
  	
  	
	
	
    
  </DD>
</DL>
<HR>




<A NAME="getCurrentIDFromSequence()"><!-- --></A><H3>
getCurrentIDFromSequence</H3>

<PRE>
private <A HREF="nativetypes.html#detail_numeric" title="">numeric</A> <B>getCurrentIDFromSequence</B>(<a href="nativetypes.html#detail_string">string</a> name)</PRE>
<DL>
  <DD>
  	
  	
		gets the Current ID from the sequence
	    <P>
	
	
		<DL>
		  <DT><B>Parameters:</B></DT>
			
			  <DD><code><a href="nativetypes.html#detail_string">string</a> name</code> - The name of the table</DD>
			
		</DL>
	
	
    
  </DD>
</DL>
<HR>




<A NAME="getDatasource()"><!-- --></A><H3>
getDatasource</H3>

<PRE>
private <A HREF="content2efb.html" title="">Datasource</A> <B>getDatasource</B>()</PRE>
<DL>
  <DD>
  	
  	
	
	
    
  </DD>
</DL>
<HR>




<A NAME="getGUID()"><!-- --></A><H3>
getGUID</H3>

<PRE>
public <A HREF="nativetypes.html#detail_string" title="">string</A> <B>getGUID</B>()</PRE>
<DL>
  <DD>
  	
  	
		5862
	    <P>
	
	
	
    
  </DD>
</DL>
<HR>




<A NAME="getIDFromSequence()"><!-- --></A><H3>
getIDFromSequence</H3>

<PRE>
private <A HREF="nativetypes.html#detail_numeric" title="">numeric</A> <B>getIDFromSequence</B>(<a href="content7052.html">Object</a> object)</PRE>
<DL>
  <DD>
  	
  	
		Gets an ID from a given sequence
	    <P>
	
	
		<DL>
		  <DT><B>Parameters:</B></DT>
			
			  <DD><code><a href="content7052.html">Object</a> object</code> - The type of object to get the ID for</DD>
			
		</DL>
	
	
    
  </DD>
</DL>
<HR>




<A NAME="getMaxIDFromSequence()"><!-- --></A><H3>
getMaxIDFromSequence</H3>

<PRE>
private <A HREF="nativetypes.html#detail_numeric" title="">numeric</A> <B>getMaxIDFromSequence</B>(<a href="nativetypes.html#detail_string">string</a> name)</PRE>
<DL>
  <DD>
  	
  	
		gets the max ID from the sequence
	    <P>
	
	
		<DL>
		  <DT><B>Parameters:</B></DT>
			
			  <DD><code><a href="nativetypes.html#detail_string">string</a> name</code> - The name of the table</DD>
			
		</DL>
	
	
    
  </DD>
</DL>
<HR>




<A NAME="getNumericID()"><!-- --></A><H3>
getNumericID</H3>

<PRE>
public <A HREF="nativetypes.html#detail_numeric" title="">numeric</A> <B>getNumericID</B>(<a href="content7052.html">Object</a> object)</PRE>
<DL>
  <DD>
  	
  	
		Gets an numeric ID for a given object (synchronized)
	    <P>
	
	
		<DL>
		  <DT><B>Parameters:</B></DT>
			
			  <DD><code><a href="content7052.html">Object</a> object</code> - The type of object to get the ID for</DD>
			
		</DL>
	
	
    
  </DD>
</DL>
<HR>




<A NAME="getSequenceCollection()"><!-- --></A><H3>
getSequenceCollection</H3>

<PRE>
private <A HREF="nativetypes.html#detail_struct" title="">struct</A> <B>getSequenceCollection</B>()</PRE>
<DL>
  <DD>
  	
  	
	
	
    
  </DD>
</DL>
<HR>




<A NAME="getUtility()"><!-- --></A><H3>
getUtility</H3>

<PRE>
private <A HREF="content13c8.html" title="">transfer.com.util.Utility</A> <B>getUtility</B>()</PRE>
<DL>
  <DD>
  	
  	
	
	
    
  </DD>
</DL>
<HR>




<A NAME="getUUID()"><!-- --></A><H3>
getUUID</H3>

<PRE>
public <A HREF="nativetypes.html#detail_uuid" title="">uuid</A> <B>getUUID</B>()</PRE>
<DL>
  <DD>
  	
  	
		Gets a UUID as an ID
	    <P>
	
	
	
    
  </DD>
</DL>
<HR>




<A NAME="increaseMaxIDForSequence()"><!-- --></A><H3>
increaseMaxIDForSequence</H3>

<PRE>
private <A HREF="nativetypes.html#detail_void" title="">void</A> <B>increaseMaxIDForSequence</B>(<a href="nativetypes.html#detail_string">string</a> name)</PRE>
<DL>
  <DD>
  	
  	
		Increases the MaxID for a sequence
	    <P>
	
	
		<DL>
		  <DT><B>Parameters:</B></DT>
			
			  <DD><code><a href="nativetypes.html#detail_string">string</a> name</code> - The name of the table</DD>
			
		</DL>
	
	
    
  </DD>
</DL>
<HR>




<A NAME="incrementCurrentID()"><!-- --></A><H3>
incrementCurrentID</H3>

<PRE>
private <A HREF="nativetypes.html#detail_numeric" title="">numeric</A> <B>incrementCurrentID</B>(<a href="nativetypes.html#detail_string">string</a> name)</PRE>
<DL>
  <DD>
  	
  	
		retruns the currentID + 1 and increments it
	    <P>
	
	
		<DL>
		  <DT><B>Parameters:</B></DT>
			
			  <DD><code><a href="nativetypes.html#detail_string">string</a> name</code> - The name of the table</DD>
			
		</DL>
	
	
    
  </DD>
</DL>
<HR>




<A NAME="init()"><!-- --></A><H3>
init</H3>

<PRE>
public <A HREF="contentb162.html" title="">IDGenerator</A> <B>init</B>(<a href="nativetypes.html#detail_numeric">numeric</a> changeFactor,&nbsp;<a href="content2efb.html">Datasource</a> datasource,&nbsp;<a href="content13c8.html">Utility</a> utility)</PRE>
<DL>
  <DD>
  	
  	
		Constructor
	    <P>
	
	
		<DL>
		  <DT><B>Parameters:</B></DT>
			
			  <DD><code><a href="nativetypes.html#detail_numeric">numeric</a> changeFactor</code> - How many IDs to keep resident</DD>
			
			  <DD><code><a href="content2efb.html">Datasource</a> datasource</code> - Datasource for the applicaiton</DD>
			
			  <DD><code><a href="content13c8.html">Utility</a> utility</code> - The utility class</DD>
			
		</DL>
	
	
    
  </DD>
</DL>
<HR>




<A NAME="restoreSequence()"><!-- --></A><H3>
restoreSequence</H3>

<PRE>
private <A HREF="nativetypes.html#detail_void" title="">void</A> <B>restoreSequence</B>(<a href="content7052.html">Object</a> object)</PRE>
<DL>
  <DD>
  	
  	
		restores a sequence from the DB
	    <P>
	
	
		<DL>
		  <DT><B>Parameters:</B></DT>
			
			  <DD><code><a href="content7052.html">Object</a> object</code> - The type of object to get the ID for</DD>
			
		</DL>
	
	
    
  </DD>
</DL>
<HR>




<A NAME="retrieveSequence()"><!-- --></A><H3>
retrieveSequence</H3>

<PRE>
private <A HREF="nativetypes.html#detail_numeric" title="">numeric</A> <B>retrieveSequence</B>(<a href="content7052.html">Object</a> object,&nbsp;[<a href="nativetypes.html#detail_boolean">boolean</a> runOnce="false"],&nbsp;[<a href="nativetypes.html#detail_boolean">boolean</a> useBinding="true"])</PRE>
<DL>
  <DD>
  	
  	
		Retrives the current ID for the sequence
	    <P>
	
	
		<DL>
		  <DT><B>Parameters:</B></DT>
			
			  <DD><code><a href="content7052.html">Object</a> object</code> - The type of object to get the ID for</DD>
			
			  <DD><code>[<a href="nativetypes.html#detail_boolean">boolean</a> runOnce="false"]</code> - Flag to see if this has been run recursively or not yet, to prevent infinite loop</DD>
			
			  <DD><code>[<a href="nativetypes.html#detail_boolean">boolean</a> useBinding="true"]</code> - use the param bind</DD>
			
		</DL>
	
	
    
  </DD>
</DL>
<HR>




<A NAME="setChangeFactor()"><!-- --></A><H3>
setChangeFactor</H3>

<PRE>
private <A HREF="nativetypes.html#detail_void" title="">void</A> <B>setChangeFactor</B>(<a href="nativetypes.html#detail_numeric">numeric</a> ChangeFactor)</PRE>
<DL>
  <DD>
  	
  	
	
		<DL>
		  <DT><B>Parameters:</B></DT>
			
			  <DD><code><a href="nativetypes.html#detail_numeric">numeric</a> ChangeFactor</code></DD>
			
		</DL>
	
	
    
  </DD>
</DL>
<HR>




<A NAME="setCurrentIDFromSequence()"><!-- --></A><H3>
setCurrentIDFromSequence</H3>

<PRE>
private <A HREF="nativetypes.html#detail_void" title="">void</A> <B>setCurrentIDFromSequence</B>(<a href="nativetypes.html#detail_string">string</a> name,&nbsp;<a href="nativetypes.html#detail_numeric">numeric</a> currentID)</PRE>
<DL>
  <DD>
  	
  	
		Sets the Max ID for a sequence
	    <P>
	
	
		<DL>
		  <DT><B>Parameters:</B></DT>
			
			  <DD><code><a href="nativetypes.html#detail_string">string</a> name</code> - The name of the table</DD>
			
			  <DD><code><a href="nativetypes.html#detail_numeric">numeric</a> currentID</code> - The new currentID</DD>
			
		</DL>
	
	
    
  </DD>
</DL>
<HR>




<A NAME="setDatasource()"><!-- --></A><H3>
setDatasource</H3>

<PRE>
private <A HREF="nativetypes.html#detail_void" title="">void</A> <B>setDatasource</B>(<a href="content2efb.html">Datasource</a> Datasource)</PRE>
<DL>
  <DD>
  	
  	
	
		<DL>
		  <DT><B>Parameters:</B></DT>
			
			  <DD><code><a href="content2efb.html">Datasource</a> Datasource</code></DD>
			
		</DL>
	
	
    
  </DD>
</DL>
<HR>




<A NAME="setMaxIDFromSequence()"><!-- --></A><H3>
setMaxIDFromSequence</H3>

<PRE>
private <A HREF="nativetypes.html#detail_void" title="">void</A> <B>setMaxIDFromSequence</B>(<a href="nativetypes.html#detail_string">string</a> name,&nbsp;<a href="nativetypes.html#detail_numeric">numeric</a> maxID)</PRE>
<DL>
  <DD>
  	
  	
		Sets the Max ID for a sequence
	    <P>
	
	
		<DL>
		  <DT><B>Parameters:</B></DT>
			
			  <DD><code><a href="nativetypes.html#detail_string">string</a> name</code> - The name of the table</DD>
			
			  <DD><code><a href="nativetypes.html#detail_numeric">numeric</a> maxID</code> - The new maxID</DD>
			
		</DL>
	
	
    
  </DD>
</DL>
<HR>




<A NAME="setSequenceCollection()"><!-- --></A><H3>
setSequenceCollection</H3>

<PRE>
private <A HREF="nativetypes.html#detail_void" title="">void</A> <B>setSequenceCollection</B>(<a href="nativetypes.html#detail_struct">struct</a> SequenceCollection)</PRE>
<DL>
  <DD>
  	
  	
	
		<DL>
		  <DT><B>Parameters:</B></DT>
			
			  <DD><code><a href="nativetypes.html#detail_struct">struct</a> SequenceCollection</code></DD>
			
		</DL>
	
	
    
  </DD>
</DL>
<HR>




<A NAME="setUtility()"><!-- --></A><H3>
setUtility</H3>

<PRE>
private <A HREF="nativetypes.html#detail_void" title="">void</A> <B>setUtility</B>(<a href="content13c8.html">Utility</a> Utility)</PRE>
<DL>
  <DD>
  	
  	
	
		<DL>
		  <DT><B>Parameters:</B></DT>
			
			  <DD><code><a href="content13c8.html">Utility</a> Utility</code></DD>
			
		</DL>
	
	
    
  </DD>
</DL>
<HR>




<A NAME="throw()"><!-- --></A><H3>
throw</H3>

<PRE>
private <A HREF="nativetypes.html#detail_any" title="">any</A> <B>throw</B>(<a href="nativetypes.html#detail_string">string</a> type,&nbsp;<a href="nativetypes.html#detail_string">string</a> message,&nbsp;[<a href="nativetypes.html#detail_string">string</a> detail=""])</PRE>
<DL>
  <DD>
  	
  	
		Throws an Exception
	    <P>
	
	
		<DL>
		  <DT><B>Parameters:</B></DT>
			
			  <DD><code><a href="nativetypes.html#detail_string">string</a> type</code> - The type of exception</DD>
			
			  <DD><code><a href="nativetypes.html#detail_string">string</a> message</code> - The message to accompany the exception</DD>
			
			  <DD><code>[<a href="nativetypes.html#detail_string">string</a> detail=""]</code> - The detail message for the exception</DD>
			
		</DL>
	
	
    
  </DD>
</DL>
<HR>




<A NAME="updateSequence()"><!-- --></A><H3>
updateSequence</H3>

<PRE>
private <A HREF="nativetypes.html#detail_void" title="">void</A> <B>updateSequence</B>(<a href="nativetypes.html#detail_string">string</a> name,&nbsp;<a href="nativetypes.html#detail_numeric">numeric</a> maxID)</PRE>
<DL>
  <DD>
  	
  	
		Updates the sequence in the db
	    <P>
	
	
		<DL>
		  <DT><B>Parameters:</B></DT>
			
			  <DD><code><a href="nativetypes.html#detail_string">string</a> name</code> - The name of the table</DD>
			
			  <DD><code><a href="nativetypes.html#detail_numeric">numeric</a> maxID</code> - The new maxID</DD>
			
		</DL>
	
	
    
  </DD>
</DL>
<HR>







</BODY>

<!-- Mirrored from delerium:8503/cfcdoc/content.cfm?file=C%3A%5CInetpub%5Cwwwroot%5Ctransfer%2Droot%5Ctransfer%5Ccom%5Csql%5CIDGenerator%2Ecfc by HTTrack Website Copier/3.x [XR&CO'2006], Sat, 07 Apr 2007 03:17:33 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8"><!-- /Added by HTTrack -->
</HTML>